#pragma once

class CFileSplitListen
{
public:
	virtual void OnProgress(DWORD dwCode, LPCTSTR lpText)=0;
};

class CFileSplit
{
public:
	BOOL CFileSplit::SaveFileData(int index, LPBYTE data, UINT size);
	BOOL Setup(LPBYTE find, UINT find_size, INT offset);
	BOOL Process(LPCTSTR szInputFile, LPCTSTR szOutputDir, CFileSplitListen *pListener);

private:
	BYTE m_find[1024];
	UINT m_find_size;
	INT  m_offset;
	CString m_base_name;
	CString m_ext_name;
	CString m_dir;
};
